<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // Symbol 是ES6新增的数据类型  Symbol 默认生成一个独一无二的值
        // 但是使用Symbol.for() 生成了一个值
        var s1 = Symbol.for(123)
        var s2 = Symbol.for(123)
        console.log(s1 === s2)
        
        // var obj = {
        //     name: "6666"
        // }

        // // obj.name = "8888";
        // obj[s1] = "8888"
        // obj[s2] = "8889"
        // console.log(obj)
        // console.log(obj[s1])
    </script>
</body>
</html>